<template>
  <a-config-provider
    :locale="zhCN"
    :theme="{
      token: {
        colorPrimary: '#514ef2',
      },
    }"
  >
    <Layout>
      <router-view v-slot="{ Component }">
        <Transition name="fade-transform" mode="out-in">
          <component :is="Component" />
        </Transition>
      </router-view>
    </Layout>
  </a-config-provider>
</template>

<script setup>
import Layout from '@/layout/index.vue'
import zhCN from 'ant-design-vue/es/locale/zh_CN'
import dayjs from 'dayjs';
import 'dayjs/locale/zh-cn';
dayjs.locale('zh-cn')
</script>

<style lang="scss" scoped></style>
